package com.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.bean.User;

@Transactional(propagation=Propagation.REQUIRES_NEW,readOnly=false,isolation=Isolation.DEFAULT)
public interface UserDAO {
	public int insertUser(User user);
	public int updateUser(User user);
	public int deleteUser(String name);

	public List<User> selectUser(@Param("pageSize") int pageSize,@Param("pageIndex") int pageIndex,@Param("SearchSql") String SearchSql);
	
	public User selectOne(String username, String password);
	
	public List<User> selectAllByid();

	public User selectById(Integer userid);
	
	
	public User selectByPrimaryKey(Integer id);
	
	public List<User> selectAllUser(Map<String, Object> map);
	void insertSelective(User user);
	public void deleteByPrimaryKey(Integer id);
	public void updateByPrimaryKeySelective(User user);
}
